﻿using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Drawing;
using System.Data;
using System.Text;
using System.Windows.Forms;

namespace kongjian34
{
    [Designer(typeof(TongJi_EMS._TJ_Basic.TJ_BasicControlDesigner))]
    public partial class daidianxianshiqi10kv : TongJi_EMS._TJ_Basic.TJ_BasicControl
    {
        public daidianxianshiqi10kv()
        {
            InitializeComponent();
        }
        private void diandianshianshi10kv_Load(object sender, EventArgs e)
        {
            diandianshianshi10kv_Resize(sender, e);


        }

        private void diandianshianshi10kv_Paint(object sender, PaintEventArgs e)
        {
            Pen a = new Pen(CtrColor, 1);
           
            e.Graphics.DrawLine(a, x * 0.5f, y*0.4f,x*1.5f,y*0.4f);
            e.Graphics.DrawLine(a, x * 0.5f, y * 0.3f, x * 1.5f, y * 0.3f);
            e.Graphics.DrawLine(a, x * 0.5f, y * 1.7f, x * 1.5f, y * 1.7f);
            e.Graphics.DrawLine(a, x * 0.6f, y * 1.8f, x * 1.4f, y * 1.8f);
            e.Graphics.DrawLine(a, x * 0.7f, y * 1.9f, x * 1.3f, y * 1.9f);
            e.Graphics.DrawLine(a, x, 0, x, y * 0.3f);
            e.Graphics.DrawLine(a, x, y*0.4f, x, y -x*0.5f);
            e.Graphics.DrawLine(a, x, y +x*0.5f, x, y * 1.7f);

            Pen b = new Pen(Color.White, 1);
            e.Graphics.DrawEllipse(b, x * 0.5f, y - x * 0.5f, x, x);
            e.Graphics.DrawLine(b, x * 0.6f, y * 0.85f, x * 1.4f, y * 1.15f);
            e.Graphics.DrawLine(b, x * 0.6f, y * 1.15f, x * 1.4f, y * 0.85f);
        }

        private void diandianshianshi10kv_Resize(object sender, EventArgs e)
        {
            this.x = this.Width / 2;
            this.y = this.Height / 2;
            //this.Refresh();
        }




    }
}